import request from '@/utils/request';
/** -----------------------------门店----------------------------- */

/**
 * 保费、建店数统计 - 查询指定组织在指定日期维度下的保费数据和建店数
 * @param {*} pageParam
 */
export const getTotalMsgByOrgId = pageParam => {
  return request({
    // url: '/chexian/statistics/getTotalMsgByOrgId',
    url: '/chexian/orgStatistics/insuranceStatistic',
    data: pageParam,
    method: 'post'
  });
};
/**
 * 查询指定组织在指定日期维度下的保费数据和建店数
 * @param {*} pageParam
 */
export const getAreaDataByOrgId = pageParam => {
  return request({
    // url: '/chexian/statistics/getAreaDataByOrgId',
    url: '/chexian/areaStatistics/bulletinBoard',
    data: pageParam,
    method: 'post'
  });
};
/**
 * 保费趋势
 * @param {*} pageParam
 */
export const getDateAndAreaMsg = pageParam => {
  return request({
    // url: '/chexian/statistics/getMsgByOrgIdAndDateAndArea',
    url: '/chexian/areaStatistics/insuranceTrend',
    data: pageParam,
    method: 'post'
  });
};
/**
 * 获取地图数据
 * @param {*} pageParam
 */
export const getAreaMsg = pageParam => {
  return request({
    // url: '/chexian/userStatistics/areaMsg',
    url: '/chexian/areaStatistics/mapData',
    data: pageParam,
    method: 'post'
  });
};
